﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Catalog.aspx.cs" Inherits="BackEnd.Catalog" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<title></title>
	<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
</head>

<body>
	<form id="form1" runat="server">
	<div class="main">

		<div class="categories">
			<h4>Categories</h4>

			<div>
			<asp:Repeater ID="rpCategory" runat="server" OnItemDataBound="rpCategory_ItemDataBound">
				<ItemTemplate>
					<div>
						<span>
							<asp:HyperLink ID="hlCatName" runat="server"></asp:HyperLink>
							<asp:Label ID="lblCatName" runat="server"></asp:Label>&nbsp;&nbsp;
							<asp:HyperLink ID="hlEditCategory"  runat="server" ImageUrl="~/Images/edit.png"></asp:HyperLink>
							<asp:ImageButton ID="btnDelCategory" runat="server" ImageUrl="~/Images/delete.png"
								OnClientClick="return confirm('Delete a category?');" OnClick="btnDelCategory_Click"/>
						</span>
					</div>
				</ItemTemplate>
			</asp:Repeater>
			</div>

			<div class="login">
				<asp:Button ID="btnAddCategory" runat="server" Text="Add new category" OnClick="btnAddCategory_Click" />
			</div>
		</div>

		<div class="products">
			<h4>Products</h4>

			<div>
			<asp:Repeater ID="rpProduct" runat="server" OnItemDataBound="rpProduct_ItemDataBound">
				<ItemTemplate>
					<div>
						<span>
							<asp:label ID="lblProdName" runat="server"></asp:label>
							<asp:HyperLink ID="hlEditProduct" CssClass="imageLink" runat="server" ImageUrl="~/Images/edit.png"></asp:HyperLink>
							<asp:ImageButton ID="btnDelProduct" runat="server" ImageUrl="~/Images/delete.png"
								OnClientClick="return confirm('Delete a product?');" OnClick="btnDelProduct_Click"/>
						</span>
					</div>
				</ItemTemplate>
			</asp:Repeater>
			</div>
			
			<div class="login">
				<asp:Button ID="btnAddProduct" runat="server" Text="Add new product" OnClick="btnAddProduct_Click" />
			</div>
		</div>

		<div class="clear">
		</div>
	</div>
	</form>
</body>
</html>